<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="itemID" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<table width="100%" border="0" cellpadding="5" cellspacing="2" class="list">
<tbody>
 	<tr>
     	<td width="2%" align="center" class="color-tr-td"><input onclick="frmSubmit('m=sanpham&a=display&danhmucid=<?php echo $this->danhmucid;?>&iddm=<?php echo $this->iddm;?>&subiddm=<?php echo $this->subiddm;?>&back=<?php echo $this->back;?>&by=<?php echo $this->by;?><?php echo constants::$pathUrl;?>', '', 'no', '')" name="buttonDis" type="button" value="No Dis" style="background:none;"/></td>
	 	<td align="center" class="color-tr-td">Thể loại sản phẩm</td>
	 	<td align="center" class="color-tr-td">Sản phẩm</td>
	 	<td align="center" class="color-tr-td">Tên</td>
    	<td width="15%" align="center" class="color-tr-td">Giá/<br>sản phẩm</td>
    	<td width="5%" align="center" class="color-tr-td">KM</td>
    	<td width="15%" align="center" class="color-tr-td">Giá</td>
    	<td width="4%" align="center" class="color-tr-td">&nbsp;</td>
    	<td width="4%" align="center" class="color-tr-td">&nbsp;</td>
   </tr>
   <?php if (count ($this->dataDisplay) > 0) {
   		$i=0;
   		foreach ($this->dataDisplay as $display) {
   ?>
	   <tr class="<?php if ($i%2==0) echo 'blue'; else echo 'white'; ?>">
	     <td align="center">
	     	<input <?php if ($display['check_dis'] == 1) {echo "checked='checked'";}?> type="checkbox" name="check_dis[]" value="<?php echo $display['id'];?>" />
	     	<input type="hidden" name="data[]" value="<?php echo $display['id'];?>" />
	     </td>
	     <td align="left"><?php echo $display['nameD'];?></td>
	     <td align="left"><?php echo $display['nameC'];?></td>
	     <td align="left" onclick="frmSubmit('m=sanpham&a=edit&danhmucid=<?php echo $this->danhmucid;?>&iddm=<?php echo $display['iddm'];?>&subiddm=<?php echo $display['iddmc'];?>&dis=1&back=<?php echo $this->back;?><?php echo constants::$pathUrl;?>&by=<?php echo $this->by;?>', '<?php echo $display['id']; ?>', '', '')">
	     	<?php echo $display['nameS'];?>
	     </td>
	     <td align="center"><?php echo number_format($display['gia1']);?>,000 VNĐ</td>
	     <td align="center" style="background:#CCC;"><?php if($display['check_km']=='1'){echo "<img src='images/default/tick.png' border='0' width='16' title='back'/>";}?></td>
	     <td align="center" style="background:#CCC;"><?php if($display['check_km']=='1'){echo number_format($display['gia2']).',000 VNĐ';}?></td>
	     <td align="center"><?php if ($this->maxseq != $display['seq']) :?><label onclick="frmSubmit('m=sanpham&a=display&danhmucid=<?php echo $this->danhmucid;?>&iddm=<?php echo $this->iddm;?>&subiddm=<?php echo $this->subiddm;?>&back=<?php echo $this->back;?>&by=<?php echo $this->by;?><?php echo constants::$pathUrl;?>', '<?php echo $display['id']; ?>', 'up', '<?php echo $display['seq']; ?>')">▲</label><?php endif;?></td>
	     <td align="center"><?php if ($this->minseq != $display['seq']) :?><label onclick="frmSubmit('m=sanpham&a=display&danhmucid=<?php echo $this->danhmucid;?>&iddm=<?php echo $this->iddm;?>&subiddm=<?php echo $this->subiddm;?>&back=<?php echo $this->back;?>&by=<?php echo $this->by;?><?php echo constants::$pathUrl;?>', '<?php echo $display['id']; ?>', 'down', '<?php echo $display['seq']; ?>')">▼</label><?php endif;?></td>
	   </tr>
   <?php 
   		$i++;
   		}
   }
   ?>
   <?php if ($this->back == '1' && $this->by == '111') :?>
   <tr>
   		<td align="center" colspan="9"><img onclick="window.location.assign('index.php?m=scategory&danhmucid=<?php echo $this->danhmucid;?>&iddm=<?php echo $this->iddm;?>&subiddm=<?php echo $this->subiddm;?><?php echo constants::$pathUrl;?>')" src="images/default/back.png" border="0" width="34" title="back"/></td>
   </tr>
   <?php else :?>
   <tr>
   		<td align="center" colspan="9"><img onclick="window.location.assign('index.php?m=sanpham&danhmucid=<?php echo $this->danhmucid;?>&iddm=<?php echo $this->iddm;?>&subiddm=<?php echo $this->subiddm;?>&back=<?php echo $this->back;?><?php echo constants::$pathUrl;?>')" src="images/default/back.png" border="0" width="34" title="back"/></td>
   </tr>
   <?php endif;?>
</tbody>
</table>
</form>